package com.itheima.edu.info.maneger.factory;

import com.itheima.edu.info.maneger.controller.BaseStudentController;
import com.itheima.edu.info.maneger.controller.BaseTeacherController;
import com.itheima.edu.info.maneger.controller.StudentController;
import com.itheima.edu.info.maneger.controller.TeacherController;
import com.itheima.edu.info.maneger.dao.*;
import com.itheima.edu.info.maneger.domain.Teacher;
import com.itheima.edu.info.maneger.service.StudentService;
import com.itheima.edu.info.maneger.service.TeacherService;

public class SystemFactory {
    public static BaseStudentDao getStudentDao() {
        return new StudentDao();
        //return new OtherStudentDao();
    }

    public static BaseTeacherDao getTeacherDao() {
        return new TeacherDao();
        //return new OtherTeacherDao();
    }

    public static BaseStudentController getStudentController() {
        return new StudentController();
        //return new OtherStudentController();
    }

    public static BaseTeacherController getTeacherController() {
        return new TeacherController();
        //return new OtherTeacherController();
    }

    public static StudentService getStudentService() {
        return new StudentService();
        //return new OtherTeacherController();
    }

    public static TeacherService getTeacherService() {
        return new TeacherService();
        //return new OtherTeacherController();
    }

}
